/**
 * 
 * 
 * 白问百答题
 * */

import React , {useState, useCallback}from 'react';
import Header from '@/component/layout/Header/Header';
import List from './List';
import './style.less';

const pageSize = 20;

const QA = (props) => {

  const [param, setParam] = useState({pageIndex:1, pageSize, type:1})

  const update = useCallback(() => {
    setParam({...param, pageIndex:param.pageIndex+1})
  }, [param])





  return (
    <>
      <Header center={<span>百问百答</span>} />
      <div className="global-content QA-box">
        <div className="QAlist-box">
          <List update={update} param={param}/>
        </div>
      </div>
    </>

  )
}


export default QA 